import request from '@/utils/request'

export default {

  currencyList(data) { //通用接口interName: 'GameAreaList', dataObj: JSON.stringify(dataObj)
    return request({
      url: '/geeclient/inter/currencyList',
      method: 'post',
      data
    })
  },
  SellShopList(data) { //查询店铺
    return request({
      url: '/geeclient/inter/SellShopList',
      method: 'get',
      params: data
    })
  },
  SellGoodsList(data) { //查询商品
    return request({
      url: '/geeclient/inter/SellGoodsList',
      method: 'get',
      params: data
    })
  },

  GameAreaList(data) { //获取店铺内分区列表
    return request({
      url: '/geeclient/inter/GameAreaList',
      method: 'get',
      params: data
    })
  },
  HumanList(data) { //当前用户所有收货角色列且
    return request({
      url: '/geeclient/inter/HumanList',
      method: 'get',
      params: data
    })
  },
  CurrencyList(data) { //游戏币商品列表
    return request({
      url: '/geeclient/inter/CurrencyList',
      method: 'get',
      params: data
    })
  },
  propList(data) { //道具商品列表
    return request({
      url: '/geeclient/inter/ItemList',
      method: 'get',
      params: data
    })
  },

  CreateOrder(data) { //下单锁定商品
    return request({
      url: '/geeclient/inter/CreateOrder',
      method: 'post',
      data
    })
  },
  FinishOrder(data) { //完成交易
    return request({
      url: '/geeclient/inter/FinishOrder',
      method: 'post',
      data
    })

  },
  CancelOrder(data) { //取消订单
    return request({
      url: '/geeclient/inter/CancelOrder',
      method: 'post',
      data
    })

  },

  SetGoodsStatus(data) { //商品中心上下架
    return request({
      url: '/geeclient/inter/SetGoodsStatus',
      method: 'post',
      data
    })

  },












}


// const uploadPath = process.env.VUE_APP_BASE_API + '/admin/storage/create'
// export { uploadPath }




